import { configureStore } from '@reduxjs/toolkit';
import userReducer from './slices/userSlice';
import activityReducer from './slices/activitySlice';
import messageReducer from './slices/messageSlice';

export const store = configureStore({
    reducer: {
        user: userReducer,
        activity: activityReducer,
        message: messageReducer,
    },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch; 